#include <iostream>
#include "Thread.h"

class MyThread : public concurrent::Thread
{
public:
	MyThread() : _count(0) {}

protected:
	virtual void run() {
		while ( 1 ) {
			std::cout << _count++ << std::endl;	
		}
	}

private:
	int _count;
};

int main(int argc, char *argv[]) {

	MyThread t;
	t.start();
	while ( 1 );
	return 0;
}
